From ecb94e0dc6ca4870abe781b3fc73a90937fd097f Mon Sep 17 00:00:00 2001 From: worktycho Date: Tue, 22 Dec 2015 16:00:17 +0000 Subject: Ignore == if followed by \ Ignore the space before == rule if immediately followed by a \. If it is imediatly followed by a \, then this is likely the base64 padding at the end of a certificate, which is followed by \n. --- src/CheckBasicStyle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CheckBasicStyle.lua b/src/CheckBasicStyle.lua index 3f0d2bd45..81968688c 100755 --- a/src/CheckBasicStyle.lua +++ b/src/CheckBasicStyle.lua @@ -194,7 +194,7 @@ local g_ViolationPatterns = -- Check spaces around "==", "<=" and ">=": {"==[a-zA-Z0-9]+", "Add space after =="}, - {"[a-zA-Z0-9]+==", "Add space before =="}, + {"[a-zA-Z0-9]+==[^\\]", "Add space before =="}, {"<=[a-zA-Z0-9]+", "Add space after <="}, {"[a-zA-Z0-9]+<=", "Add space before <="}, {">=[a-zA-Z0-9]+", "Add space after >="}, -- cgit v1.2.3